package com.googlecode.pacswitch;

import java.nio.channels.AsynchronousSocketChannel;

/**
 * @author Andrey Pavlenko
 */
public interface Condition {
    public static final Condition TRUE = new Condition() {
        @Override
        public boolean apply(final PacSwitch ps,
                final AsynchronousSocketChannel clientSocket) {
            return true;
        }
    };

    public boolean apply(PacSwitch ps, AsynchronousSocketChannel clientSocket);
}
